package club.yunqiang.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * rds相关配置类
 *
 * @author YunQiang
 */
@ConfigurationProperties(
        prefix = "aliyun.rds"
)
@Component
public class RdsProperties {

    /**
     * 地域名称的ID，如cn-hangzhou
     */
    private String regionId;

    /**
     * 阿里云颁发给用户的访问服务所用的密钥ID
     */
    private String accessKeyId;

    /**
     * accessKeyId 对应的密钥
     */
    private String secret;

    /**
     * 实例ID
     */
    private String dbInstanceId;

    /**
     * 端口号
     */
    private String port;

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getDbInstanceId() {
        return dbInstanceId;
    }

    public void setDbInstanceId(String dbInstanceId) {
        this.dbInstanceId = dbInstanceId;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
